package com.bingxue.edu.common.enums;

import com.bingxue.edu.framework.enums.Dict;
import com.bingxue.edu.framework.enums.DictEnum;
import com.mybatisflex.annotation.EnumValue;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * 性别
 *
 * @author panbo
 * @since 2024/6/27
 */
@Getter
@RequiredArgsConstructor
@Dict("性别")
public enum GenderEnum implements DictEnum<Integer> {

    UNKNOWN(0, "未知"),
    MALE(1, "男"),
    FEMALE(2, "女"),;

    @EnumValue
    private final Integer value;
    private final String label;

    public static GenderEnum of(Integer gender) {
        return null;
    }
}
